package cn.edu.just.firstjavaapp.I9;

import cn.edu.just.firstjavaapp.l8.Person;
import cn.edu.just.firstjavaapp.l8.Rectangle;

public class JavaDemo {
    public static void main(String[] args) {
        Object obj = new Person();
        Object obj2 = new Rectangle();

        Person p = (Person)obj;
        Person p2 = (Person)obj2;
    }
}
